package com.yoda.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.dto.CatePageDTO;
import com.yoda.entity.YddCate;
import com.yoda.result.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-05-15
 */
public interface IYddCateService extends IService<YddCate> {

    /**
     * 根据id查询
     * @return
     */

    public Result getById( String id);

    /**
     * 分类列表-分页
     * @return
     */

    public Result  pageCate(CatePageDTO dto);

    /**
     * 新增分类
     * @param yddCate
     * @return
     */

    public Result add(YddCate yddCate);

    /**
     * 修改分类
     * @param yddCate
     * @return
     */

    public Result update( YddCate yddCate);

    /**
     * 分类列表
     * @return
     */

    public Result selectAll();

}
